// 查看是否投了票
export function vote (state) {
    return function (id) {
        if (!state.votes || state.votes.length === 0) {
            return null
        } else {
            return state.votes.find(vote => vote.replyId === id)
        }
    }
}
